package com.gr.labbackend.controller.manage.events;

import com.alibaba.fastjson.JSONObject;
import com.gr.labbackend.service.manage.events.GetEventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetEventController {

    @Autowired
    private GetEventService getEventService;

    @GetMapping("/api/manage/event/get-record")
    public JSONObject getEventRecord(@RequestParam int page) {
        return getEventService.getEventRecord(page);
    }

}
